package com.yupi.springbootinit.datasource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Classname DataSource
 * @Description TODO 数据源接口，新接入的数据必须改接口
 * @Date 2023/11/5 15:15
 * @Created by Daivd
 */
public interface DataSource<T> {

    /**
    * @Description: 搜索
    * @Date: 2023/11/5
    */
    Page<T> doSearch(String searchText, long pageNum, long pageSize);
}
